"""
质量控制专家
"""
from langgraph.prebuilt import create_react_agent

from core.llm import llm
from core.agents.plan.prompts import critic_prompt


critic = create_react_agent(
    name="Critic",
    role="Quality Controller",
    description="Critically evaluates ideas or assumptions based on delegated critique sub-tasks.",
    prompt=critic_prompt,
    model = llm,
    tools = [],
)


if __name__ == '__main__':
    res = critic.invoke({"messages": "what's (3 + 5) x 12?"})
    print(res['messages'][-1].content)